package com.voxel.sense.infomsg.module.trace.map;

import com.example.com.common.utils.TimeUtils;
import com.example.com.common.utils.constants.TimeConstants;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Created by ChenYiYao on 2018/5/28.
 */
public class DomeText {
    public static void main(String[] arg) {
        Date startTime = TimeUtils.getDate("2018-05-31", new SimpleDateFormat("yyyy-MM-dd"),0, TimeConstants.SEC);
        Date endTime = new Date();
        endTime.setTime(startTime.getTime());
        endTime.setDate(startTime.getDate() + 1);
        System.out.println("startTime:" + TimeUtils.date2String(startTime));
        System.out.println("endTime:" + TimeUtils.date2String(endTime));

//        long millis = TimeUtils.getMillis("2018-05-25", new SimpleDateFormat("yyyy-MM-dd", Locale.getDefault()), 0, TimeConstants.SEC);
//        long millis1 = TimeUtils.getMillis("2018-05-26", new SimpleDateFormat("yyyy-MM-dd", Locale.getDefault()), 0, TimeConstants.SEC);

    }
}
